home *** CD-ROM | disk | FTP | other *** search
/ .net (Turkey) 1998 March / .net Internet Dergisi - CD 5.iso / mac / CON_BM / 00284_Script_284 < prev    next >
Text File  |  1997-11-07  |  971b  |  34 lines

  1. --Custom Cursor Bit 
  2.  
  3. on setUpCursor theMember 
  4.   -- Sets up the custom cursor so that it can be run from any frame.
  5.   puppetSprite 48, true
  6.   set the member of sprite 48 = member theMember
  7.   cursor 200  
  8.   -- this turns off the real cursor
  9. end
  10.  
  11. -- thisSprite is a sprite channel where the custom cursor will live. 
  12. -- It's usually channel 48 so that the custom cursor will stay on 
  13. -- top of everything else on the stage.
  14.  
  15. -- thisMember is the cast member number that will be the 
  16. -- custom sprite. There are 3 to choose from in this sample.
  17.  
  18. -----------
  19. on colorCursor
  20.   set the loc of sprite 48 to point(the mouseH,the  MouseV)
  21.   updatestage
  22. end
  23.  
  24. -- this handler along with a set up handler that's called 
  25. -- in the startMovie handler turns off the original cursor 
  26. -- and substitutes a custom color cursor.
  27.  
  28. -- Use channel 48 for the custom cursor. 
  29. -- That way it will stay on top of everything else on the stage.
  30.  
  31. ---------------
  32.  
  33.  
  34.